package com.hyt.it.ogt.opertaion.track.rpc;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.core.exception.NestedBusinessException;
import com.hyt.it.ogt.opertaion.track.model.AnswerLogVO;
import com.hyt.it.ogt.opertaion.track.model.OtherLogVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  考务接口
 * </p>
 *
 * @author 朱振宇
 * @since 2022-11-23
 */
@Slf4j
@Component
public class KsOperationTrackClientHystrix implements KsOperationTrackClient {

    @Override
    public ApiResponse<Boolean> saveAnswerTrackLog(List<AnswerLogVO> answerLogVOList) {
        log.error("#保存答题轨迹记录失败，进入熔断");
        throw new NestedBusinessException("保存答题轨迹记录失败");
    }

    @Override
    public ApiResponse<Boolean> saveOtherTrackLog(List<OtherLogVO> otherLogVOList) {
        log.error("#保存其它轨迹记录失败，进入熔断");
        throw new NestedBusinessException("保存其它轨迹记录失败");
    }
}
